public class MethodAreaTest {
    public static void main(String[] args) {
        Order order = null;
        order.hello();  // 可以访问
        System.out.println(order.count);
    }
}

class Order {
    public static int count = 1;
    public static final int NUMBER = 2;   // 全局常量

    public static void hello() {
        System.out.println("hello");
    }
}
